From: Florian Müllner Date: Fri, 10 May 2013 14:00:20 +0000 (+0200) Subject: main: Always pass a default stylesheet when constructing the theme X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~4208 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=990f68375e625de2883d290f908c60beb68e5393;p=gnome-shell.git main: Always pass a default stylesheet when constructing the theme There is not always a clear distinction between code and style, which is why the interface ends up being mostly unusable when we end up without *any* style, for instance because the specified application-stylesheet is corrupt. Setting the default stylesheet in addition to the application-stylesheet is no guarantee for non-default themes not messing up the interface, but it should at least lower the risk ... https://bugzilla.gnome.org/show_bug.cgi?id=700097 --- diff --git a/js/ui/main.js b/js/ui/main.js index 7232deb8b..b4e4687c7 100644 --- a/js/ui/main.js +++ b/js/ui/main.js @@ -446,7 +446,8 @@ function loadTheme() { if (_cssStylesheet != null) cssStylesheet = _cssStylesheet; - let theme = new St.Theme ({ application_stylesheet: cssStylesheet }); + let theme = new St.Theme ({ application_stylesheet: cssStylesheet, + default_stylesheet: _defaultCssStylesheet }); if (previousTheme) { let customStylesheets = previousTheme.get_custom_stylesheets();